﻿using System;
using System.Collections.Generic;
using System.Text;

namespace LabMS.Common
{
    static public class Status
    {
        static public string GetOpenProjectStatus(string code)
        {
            if (code == "0")
            {
                return "<a style=\" color:Gray\">未申请</a>";
            }
            if (code == "1")
            {
                return "<a style=\" color:Green\">待审中</a>";
            }
            if (code == "2")
            {
                return "<a style=\" color:Red\">已审批[不通过]</a>";
            }
            if (code == "3")
            {
                return "<a style=\" color:Blue\">已审批[通过]</a>";
            }
            return "";

        }

        static public string GetSemester(int code)
        {
            if (code == 1)
            {
                return "春季学期";
            }
            if (code == 2)
            {
                return "秋季学期";
            }
           
            return "";

        }

        static public string GetPersonalProjectStatus(string code)
        {
            if (code == "1")
            {
                return "<a style=\" color:Gray\">未申请</a>";
            }
            if (code == "2")
            {
                return "<a style=\" color:Green\">待审中</a>";
            }
            if (code == "3")
            {
                return "<a style=\" color:Red\">已审[未通过]</a>";
            }
            if (code == "4")
            {
                return "<a style=\" color:Blue\">已审[通过]</a>";
            }
            return "";

        }
    }
}
